#include <System.hpp>
#include <vcl.h>
#include "BFIOR.h"
#pragma hdrstop

#include <TestFramework.hpp>

class TTestBFIOR : public TTestCase
{
public:
  __fastcall virtual TTestBFIOR(System::String name) : TTestCase(name) {}
  virtual void __fastcall SetUp();
  virtual void __fastcall TearDown();
  
__published:
  void __fastcall Testdraw();
  void __fastcall Testwidth();
};


void __fastcall TTestBFIOR::SetUp()
{
}

void __fastcall TTestBFIOR::TearDown()
{
}

void __fastcall TTestBFIOR::Testdraw()
{
  // void draw(int x, int y)
}

void __fastcall TTestBFIOR::Testwidth()
{
  // int width()
	TCanvas* Canvas = new TCanvas();
	Canvas->Font->Size = 20;
	BFIOR *test = new BFIOR(Canvas);
	int wanted = Canvas->Font->Size;
	int width = test->width();
	this->CheckEquals(width,wanted);
	bool flag = width>0;
}
    


static void registerTests()
{
  Testframework::RegisterTest(TTestBFIOR::Suite());
}
#pragma startup registerTests 33
